/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Farcast;

/**
 *
 * @author Jeroen Rikhof
 */
public class Message {
    private final int MAXFILES = 5;
    private File fileArray[] = new File[MAXFILES];
    private int fileIndex;
    private String mestitle = "";
    private String mesbody = "";
    
    public Message() {
        this.fileIndex = 0;
    }
    
    public void addFile(File fl) {
        if (fileIndex < MAXFILES)
            this.fileArray[fileIndex] = fl;
        this.fileIndex++;
    }
    
    public int numberOfFiles() {
        return this.fileIndex;
    }
    
    public File getFile(int index) {
        return this.fileArray[index ];
    }
    
    public void setMessageTitle(String title){
        this.mestitle = title;
    }
    
    public void setMessageBody(String body){
        this.mesbody =  body;
    }
    
    public String getMessageTitle(){
        return this.mestitle;
    }
    
    public String getMessageBody(){
        return this.mesbody;
    }
    
    
}
